<!DOCTYPE html>
<html>
<head>
    <meta name="layout" content="main2"/>
    <g:set var="entityName" value="${message(code: 'opportunityWorkflow.label', default: 'OpportunityWorkflow')}"/>
    <title>工作流</title>
</head>

<body>
<div class="main-body">
    <div class="page-wrapper">
        <!-- Page-header start -->
        <div class="page-header">
            <div class="page-header-title">
                <h4>工作流</h4>
            </div>

            <div class="page-header-breadcrumb">
                <ul class="breadcrumb-title">
                    <li class="breadcrumb-item">
                        <a href="/salesDashboard/index">
                            <i class="icofont icofont-home"></i>
                        </a>
                    </li>
                    <li class="breadcrumb-item"><a href="#!">工作流</a>
                    </li>
                </ul>
            </div>
        </div>
        <!-- Page-header end -->
        <!-- Page-body start -->
        <div class="page-body">
            <!-- Hover table card start -->
            <div class="card">
                <div class="card-header">
                    <h5>工作流</h5>

                    <div class="card-header-right">
                        <g:link action="create"><i class="ion-plus"></i> 新增</g:link>
                    </div>
                </div>

                <div class="card-block dt-responsive">

                    <div class="table-responsive">
                        <div id="dom-jqry_wrapper" class="dataTables_wrapper dt-bootstrap4">
                            <g:form method="POST" >
                                <div class="row m-0">
                                    <div class="col-md-8 p-l-0">
                                        
                                    </div>
                                    <div class="col-md-4 p-r-0 dt-buttons text-right">                                        
                                        

                                    </div>
                                </div>
                            </g:form>
                    <table class="table table-striped  table-bordered table-hover">
                        <thead>
                        <tr>
                            <g:sortableColumn property="name" title="名称"/>
                            <g:sortableColumn property="active" title="是否启用"/>

                        </tr>
                        </thead>
                        <tbody>
                        <g:each in="${workflowList}">
                            <tr>
                                <td><g:link controller="workflow" action="show"
                                            id="${it?.id}">${it?.name}</g:link></td>
                                <td>${it?.active}</td>
                            </tr>
                        </g:each>
                        </tbody>
                    </table>

            <div class="dataTables_paginate">
                <div class="pagination">
                    <g:paginate total="${workflowCount ?: 0}" params="${params}"/>
                </div>
            </div>
        </div>

                    </div>

                </div>
            </div>
            <!-- Hover table card end -->
        </div>

        <!-- Page-body end -->
    </div>
</div>
</body>
</html>
